/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pojo;

import java.io.Serializable;
import java.sql.Date;

/**
 *
 * @author ahmed
 */
public class FtpInfo implements Serializable {
   
    private Integer ftpId;
  
    private String host;
    
    private String remoteDir;
   
    private String fileName;
   
    private String fileExtension;
    private String userName;
    private String password;
     private Date dateMod;
   
     private String localDir;
     private Provider providers;

    public FtpInfo() {
    }

    public FtpInfo(Integer ftpId) {
        this.ftpId = ftpId;
    }

    public FtpInfo(Integer ftpId, String remoteDir, String fileName, String fileExtension, String userName, String password, Date dateMod, String localDir) {
        this.ftpId = ftpId;
        this.remoteDir = remoteDir;
        this.fileName = fileName;
        this.fileExtension = fileExtension;
        this.userName = userName;
        this.password = password;
        this.dateMod = dateMod;
        this.localDir = localDir;
    }

    public Integer getFtpId() {
        return ftpId;
    }

    public void setFtpId(Integer ftpId) {
        this.ftpId = ftpId;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getRemoteDir() {
        return remoteDir;
    }

    public void setRemoteDir(String remoteDir) {
        this.remoteDir = remoteDir;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileExtension() {
        return fileExtension;
    }

    public void setFileExtension(String fileExtension) {
        this.fileExtension = fileExtension;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getDateMod() {
        return dateMod;
    }

    public void setDateMod(Date dateMod) {
        this.dateMod = dateMod;
    }

    public String getLocalDir() {
        return localDir;
    }

    public void setLocalDir(String localDir) {
        this.localDir = localDir;
    }

    public Provider getProviders() {
        return providers;
    }

    public void setProviders(Provider providers) {
        this.providers = providers;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (ftpId != null ? ftpId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof FtpInfo)) {
            return false;
        }
        FtpInfo other = (FtpInfo) object;
        if ((this.ftpId == null && other.ftpId != null) || (this.ftpId != null && !this.ftpId.equals(other.ftpId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "beans.FtpInfo[ftpId=" + ftpId + "]";
    }

}
